import axios from 'axios'
export default{
     getSubjects(params){
         return axios({
             url:'/subjects/getSubjects',
             method:"get",
             params
         })
     },
     delSubject(data){
         return axios({
             url:'/subjects/deleteSubjects',
             method:'delete',
             data
         })
     },
     updateSubject(data){
         return axios({
             url:'/subjects/updateSubjects',
             method:'put',
             data
         })
     },
     getOne(params){
         return axios({
             url:'/subjects/getSubjectsById',
             method:'get',
             params
         })
     },
     addSubject(data){
         return axios({
             url:'/subjects/addSubjects',
             method:'post',
             data
         })
     }

}